package com.ruoyi.mapper;

import com.ruoyi.domain.BasisCaseLoading;
import com.ruoyi.domain.BasisPositionUser;
import com.ruoyi.dto.BasisCaseLoadingTaskZhuser;
import com.ruoyi.dto.BasisPositionResourceInfoUser;
import com.ruoyi.dto.BasisTaskZhuser;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;


public interface BasisPositionUserMapper {

    public List<BasisPositionUser> findByLoadingIdFromPositionUser(@Param("loadingId") String loadingId);

    //查询当前案例下的侦察选员
    public List<BasisPositionUser> findByLoadingIdFromPositionUserRole(@Param("loadingId") String loadingId,@Param("deptId") Integer deptId);


    //查询当前案例下的全部人员
    public List<BasisPositionUser> findByLoadingIdFromPositionUserRoleAll(@Param("loadingId") String loadingId);

    //添加指挥人员与任务关联
    public boolean addBasisCaseLoadingTaskZhuser(BasisCaseLoadingTaskZhuser basisCaseLoadingTaskZhuser);

    //添加指挥员任务
    public int addBasisTaskZhuser(BasisTaskZhuser basisTaskZhuser);

    //下发指挥员任务
    public int configBasisTaskZhuserIssued(@Param("taskId") Integer taskId);
    //修改指挥员任务
    public int updateBasisTaskZhuser(BasisCaseLoadingTaskZhuser basisCaseLoadingTaskZhuser);

//
//    public boolean updateBasisCaseLoadingTaskZhuser(BasisPositionUser basisPositionUser);


    //指挥人员给学员设置任务
    public boolean configUserContent(BasisPositionResourceInfoUser basisPositionResourceInfoUser);


    //清空上次演训结果
    public boolean clearPerformanceTraining(@Param("loadingId") String loadingId);


}
